<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="invEgresoItemSearch" styleClass="edit">

        <rich:simpleTogglePanel label="InvEgresoItem Search Filter" switchType="ajax">

            <s:decorate template="layout/display.xhtml">
                <ui:define name="label">Egi nombre</ui:define>
                <h:inputText id="egiNombre" value="#{invEgresoItemList.invEgresoItem.egiNombre}"/>
            </s:decorate>

            <s:decorate template="layout/display.xhtml">
                <ui:define name="label">Gru codigo</ui:define>
                <h:inputText id="gruCodigo" value="#{invEgresoItemList.invEgresoItem.gruCodigo}"/>
            </s:decorate>


        </rich:simpleTogglePanel>

        <div class="actionButtons">
            <h:commandButton id="search" value="Search" action="/InvEgresoItemList.xhtml"/>
            <s:button id="reset" value="Reset" includePageParams="false"/>
        </div>

    </h:form>

    <rich:panel>
        <f:facet name="header">InvEgresoItem Search Results</f:facet>
    <div class="results" id="invEgresoItemList">

    <h:outputText value="The invEgresoItem search returned no results."
               rendered="#{empty invEgresoItemList.resultList}"/>

    <rich:dataTable id="invEgresoItemList"
                var="_invEgresoItem"
              value="#{invEgresoItemList.resultList}"
           rendered="#{not empty invEgresoItemList.resultList}">
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egr codigo item"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egrCodigoItem"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egrCodigoItem}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Dep codigo"/>
                    <ui:param name="propertyPath" value="invEgresoItem.depCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.depCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi cant max"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiCantMax"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiCantMax}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi cantidad"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiCantidad"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiCantidad}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi costo t"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiCostoT"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiCostoT}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi descuento"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiDescuento"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiDescuento}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi grabado"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiGrabado"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiGrabado}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi iva"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiIva"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiIva}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi nombre"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiNombre"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiNombre}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi precio t"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiPrecioT"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiPrecioT}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Egi precio u"/>
                    <ui:param name="propertyPath" value="invEgresoItem.egiPrecioU"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.egiPrecioU}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Gru codigo"/>
                    <ui:param name="propertyPath" value="invEgresoItem.gruCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.gruCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Inv egreso egr codigo"/>
                    <ui:param name="propertyPath" value="invEgresoItem.invEgreso.egrCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.invEgreso.egrCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Inv item stock item secuenca"/>
                    <ui:param name="propertyPath" value="invEgresoItem.invItemStock.itemSecuenca"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.invItemStock.itemSecuenca}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Subdep codigo"/>
                    <ui:param name="propertyPath" value="invEgresoItem.subdepCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.subdepCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invEgresoItemList}"/>
                    <ui:param name="propertyLabel" value="Und codigo"/>
                    <ui:param name="propertyPath" value="invEgresoItem.undCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invEgresoItem.undCodigo}"/>
        </h:column>
        <rich:column styleClass="action">
            <f:facet name="header">Action</f:facet>
            <s:link view="/#{empty from ? 'InvEgresoItem' : from}.xhtml"
                   value="#{empty from ? 'View' : 'Select'}"
             propagation="#{empty from ? 'none' : 'default'}"
                      id="invEgresoItem">
                <f:param name="invEgresoItemEgrCodigoItem"
                        value="#{_invEgresoItem.egrCodigoItem}"/>
            </s:link>
            #{' '}
            <s:link view="/InvEgresoItemEdit.xhtml"
                   value="Edit"
             propagation="none"
                      id="invEgresoItemEdit"
                rendered="#{empty from}">
                <f:param name="invEgresoItemEgrCodigoItem"
                        value="#{_invEgresoItem.egrCodigoItem}"/>
            </s:link>
        </rich:column>
    </rich:dataTable>

    </div>
    </rich:panel>

    <div class="tableControl">

        <s:link view="/InvEgresoItemList.xhtml"
            rendered="#{invEgresoItemList.previousExists}"
               value="#{messages.left}#{messages.left} First Page"
                  id="firstPage">
          <f:param name="firstResult" value="0"/>
        </s:link>

        <s:link view="/InvEgresoItemList.xhtml"
            rendered="#{invEgresoItemList.previousExists}"
               value="#{messages.left} Previous Page"
                  id="previousPage">
            <f:param name="firstResult"
                    value="#{invEgresoItemList.previousFirstResult}"/>
        </s:link>

        <s:link view="/InvEgresoItemList.xhtml"
            rendered="#{invEgresoItemList.nextExists}"
               value="Next Page #{messages.right}"
                  id="nextPage">
            <f:param name="firstResult"
                    value="#{invEgresoItemList.nextFirstResult}"/>
        </s:link>

        <s:link view="/InvEgresoItemList.xhtml"
            rendered="#{invEgresoItemList.nextExists}"
               value="Last Page #{messages.right}#{messages.right}"
                  id="lastPage">
            <f:param name="firstResult"
                    value="#{invEgresoItemList.lastFirstResult}"/>
        </s:link>

    </div>

    <s:div styleClass="actionButtons" rendered="#{empty from}">
        <s:button view="/InvEgresoItemEdit.xhtml"
                    id="create"
           propagation="none"
                 value="Create invEgresoItem">
            <f:param name="invEgresoItemEgrCodigoItem"/>
        </s:button>
    </s:div>

</ui:define>

</ui:composition>
